package com.h819.core.web.jqgrid;

import org.apache.commons.lang.ArrayUtils;

import static java.lang.System.out;

/**
 * @Title: JqgridUtils.java
 * @Description: TODO(jqgrid 工具类)
 * @author H819
 * @date 2010-4-1
 * @version V1.0
 */
public class JqgridUtils {

	final private static String operName[] = { "eq", "ne", "cn", "nc", "lt",
			"le", "gt", "ge" };

	final private static String operSqlName[] = { "=", "<>", "like",
			"not like", "<", "<=", ">", ">=" };

	public static String getOperSqlName(String searchOper) {

		return operSqlName[ArrayUtils.indexOf(operName, searchOper)];

	}

	public static void main(String[] args) {

		for (String s : operName)
			out.println(JqgridUtils.getOperSqlName(s));
	}

}
